package com.carpedil.movie.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/** @author Administrator */
@Configuration
public class MovieConfig {

  @Bean
  public Queue queue() {
    return new Queue("OrderQueue");
  }
  /**
   * restTemplate 交给spring 容器
   *
   * @return RestTemplate
   */
  @Bean
  public RestTemplate restTemplate() {
    return new RestTemplate();
  }
}
